home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / demos / hotkeyed.exe / HOTKEYED.RC < prev    next >
Text File  |  1992-04-13  |  3KB  |  75 lines

  1. // Copyright (c) 1992 Microsoft Corporation. All rights reserved.
  2.  
  3. #include "windows.h"
  4. #include "HotKeyEd.h"
  5.  
  6. HotKeyEditIcon   ICON    HotKeyEd.ico
  7.  
  8. HotKeyEditMenu MENU
  9. BEGIN
  10.     POPUP       "&Shortcut Key"
  11.     BEGIN
  12.         MENUITEM    "&Edit and Install...",    IDM_EDITINSTALLHOTKEY
  13.         MENUITEM    "&Remove", IDM_REMOVEHOTKEY, GRAYED
  14.     END
  15.  
  16.     POPUP       "&Help"
  17.     BEGIN
  18.         MENUITEM "&About HotKeyEdit...", IDM_ABOUT
  19.     END
  20. END
  21.  
  22. ABOUTBOX DIALOG 22, 17, 179, 141
  23. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  24. CAPTION "About HotKeyEdit"
  25. FONT 8, "Helv"
  26. BEGIN
  27.     ICON            "HotKeyEditIcon", -1, 5, 5, 16, 21
  28.     LTEXT           "Shortcut Key Edit Sample", -1, 30, 5, 143, 8
  29.     LTEXT           "By Microsoft Windows Developer Support", -1, 30, 13, 
  30.                     143, 8
  31.     LTEXT           "Copyright ⌐ Microsoft Corp., 1992", -1, 30, 21, 143, 8
  32.     CONTROL         "", -1, "Static", SS_BLACKRECT, 0, 36, 179, 1
  33.     LTEXT           "HotKeyEdit demonstrates the implementation of a", -1, 7, 
  34.                     44, 167, 8
  35.     LTEXT           "shortcut key edit control. When the user enters a", -1, 
  36.                     7, 52, 167, 8
  37.     DEFPUSHBUTTON   "OK", SHIFT_BIT, 73, 121, 32, 14, WS_GROUP
  38.     LTEXT           "valid shortcut key, it also lets the user install that ", 
  39.                     -1, 7, 60, 167, 8
  40.     LTEXT           "shortcut key.  The shortcut key can also be ", -1, 7, 
  41.                     68, 167, 8
  42.     LTEXT           "removed. When the shortcut key is installed, the ", -1, 
  43.                     7, 76, 167, 8
  44.     LTEXT           "caption is flashed to let the user know that a ", -1, 7, 
  45.                     84, 167, 8
  46.     LTEXT           "shortcut key has been installed. The window's", -1, 
  47.                     7, 92, 167, 8
  48.     LTEXT           "color is toggled when the shortcut key is pressed.", -1, 
  49.                     7, 100, 167, 8
  50. END
  51.  
  52. HOTKEYEDITBOX DIALOG 6, 18, 189, 115
  53. STYLE DS_MODALFRAME | WS_CAPTION
  54. CAPTION "Shortcut Key Edit"
  55. FONT 8, "Helv"
  56. BEGIN
  57.     CTEXT           "A shortcut key must have an ALT or CTRL modifier.", -1, 
  58.                     0, 37, 189, 8
  59.     CTEXT           "You can also specify SHIFT but not by itself.", -1, 0, 
  60.                     45, 189, 8
  61.     LTEXT           "&Shortcut Key:", -1, 7, 71, 49, 8
  62.     EDITTEXT        IDD_HOTKEYEDIT, 60, 69, 109, 12, ES_AUTOHSCROLL
  63.     PUSHBUTTON      "Install", IDD_INSTALL, 46, 95, 40, 14, WS_DISABLED
  64.     PUSHBUTTON      "Cancel", IDCANCEL, 102, 95, 40, 14
  65.     CTEXT           "To specify a shortcut key,", -1, 0, 7, 189, 8
  66.     CTEXT           "press the key combination you want to use.", -1, 0, 15, 
  67.                     189, 8
  68.     CTEXT           "A shortcut key must have an ALT or CTRL modifier.", -1, 
  69.                     0, 37, 189, 8
  70.     CTEXT           "You can also specify SHIFT but not by itself.", -1, 0, 
  71.                     45, 189, 8
  72.     CTEXT           "Use BACKSPACE to erase a shortcut key.", -1, 0, 23, 189, 
  73.                     8
  74. END
  75.